package com.iknow.xmpp.service.aidl;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public abstract interface IChatManagerListener
  implements IInterface
{
  public abstract void chatCreated(IChat paramIChat, boolean paramBoolean)
    throws RemoteException;

  public static abstract class Stub extends Binder
  implements IChatManagerListener
  {
    private static final String DESCRIPTOR = "com.iknow.xmpp.service.aidl.IChatManagerListener";
    static final int TRANSACTION_chatCreated = 1;

    public Stub()
    {
      attachInterface(this, "com.iknow.xmpp.service.aidl.IChatManagerListener");
    }

    public static IChatManagerListener asInterface(IBinder paramIBinder)
    {
      Object localObject;
      if (paramIBinder == null)
        localObject = null;
      while (true)
      {
        while (true)
        {
          return localObject;
          IInterface localIInterface = paramIBinder.queryLocalInterface("com.iknow.xmpp.service.aidl.IChatManagerListener");
          if ((localIInterface == null) || (!(localIInterface instanceof IChatManagerListener)))
            break;
          localObject = (IChatManagerListener)localIInterface;
        }
        localObject = new Proxy(paramIBinder);
      }
    }

    public IBinder asBinder()
    {
      return this;
    }

    public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
      throws RemoteException
    {
      boolean bool1;
      boolean bool2;
      switch (paramInt1)
      {
      default:
        bool2 = super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
      case 1598968902:
        while (true)
        {
          return bool2;
          paramParcel2.writeString("com.iknow.xmpp.service.aidl.IChatManagerListener");
          bool2 = true;
        }
      case 1:
      }
      paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IChatManagerListener");
      IChat localIChat = IChat.Stub.asInterface(paramParcel1.readStrongBinder());
      if (paramParcel1.readInt() != 0)
        bool1 = true;
      while (true)
      {
        while (true)
        {
          chatCreated(localIChat, bool1);
          paramParcel2.writeNoException();
          bool2 = true;
        }
        bool1 = false;
      }
    }

    private static class Proxy
  implements IChatManagerListener
    {
      private IBinder mRemote;

      Proxy(IBinder paramIBinder)
      {
        this.mRemote = paramIBinder;
      }

      public IBinder asBinder()
      {
        return this.mRemote;
      }

      // ERROR //
      public void chatCreated(IChat paramIChat, boolean paramBoolean)
        throws RemoteException
      {
        // Byte code:
        //   0: invokestatic 30	android/os/Parcel:obtain	()Landroid/os/Parcel;
        //   3: astore_3
        //   4: invokestatic 30	android/os/Parcel:obtain	()Landroid/os/Parcel;
        //   7: astore 4
        //   9: aload_3
        //   10: ldc 32
        //   12: invokevirtual 36	android/os/Parcel:writeInterfaceToken	(Ljava/lang/String;)V
        //   15: aload_1
        //   16: ifnull +60 -> 76
        //   19: aload_1
        //   20: invokeinterface 40 1 0
        //   25: astore 6
        //   27: aload_3
        //   28: aload 6
        //   30: invokevirtual 43	android/os/Parcel:writeStrongBinder	(Landroid/os/IBinder;)V
        //   33: iload_2
        //   34: ifeq +48 -> 82
        //   37: iconst_1
        //   38: istore 7
        //   40: aload_3
        //   41: iload 7
        //   43: invokevirtual 47	android/os/Parcel:writeInt	(I)V
        //   46: aload_0
        //   47: getfield 18	com/iknow/xmpp/service/aidl/IChatManagerListener$Stub$Proxy:mRemote	Landroid/os/IBinder;
        //   50: iconst_1
        //   51: aload_3
        //   52: aload 4
        //   54: iconst_0
        //   55: invokeinterface 53 5 0
        //   60: pop
        //   61: aload 4
        //   63: invokevirtual 56	android/os/Parcel:readException	()V
        //   66: aload 4
        //   68: invokevirtual 59	android/os/Parcel:recycle	()V
        //   71: aload_3
        //   72: invokevirtual 59	android/os/Parcel:recycle	()V
        //   75: return
        //   76: aconst_null
        //   77: astore 6
        //   79: goto -52 -> 27
        //   82: iconst_0
        //   83: istore 7
        //   85: goto -45 -> 40
        //   88: astore 5
        //   90: aload 4
        //   92: invokevirtual 59	android/os/Parcel:recycle	()V
        //   95: aload_3
        //   96: invokevirtual 59	android/os/Parcel:recycle	()V
        //   99: aload 5
        //   101: athrow
        //
        // Exception table:
        //   from	to	target	type
        //   9	66	88	finally
      }

      public String getInterfaceDescriptor()
      {
        return "com.iknow.xmpp.service.aidl.IChatManagerListener";
      }
    }
  }
}